﻿<%@ Page Title="Login no sistema" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="LoginView.aspx.cs" Inherits="ASPPanificadora.Telas.LoginView" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h1>Acessar sistema</h1>
    <br />
    <p>
        <asp:Label Text="Login:" runat="server" Width="300"/>
        <asp:TextBox ID="txtLogin" runat="server" Width="300" CssClass="textBox" />
        <asp:RequiredFieldValidator runat="server" ControlToValidate="txtLogin" ErrorMessage="*Obrigatório" ForeColor="Red" />
    </p>
    <p>
        <asp:Label Text="Senha:" runat="server" Width="300"/>
        <asp:TextBox ID="txtSenha" runat="server" Width="300" CssClass="textBox" TextMode="Password" />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtSenha" ErrorMessage="*Obrigatório" ForeColor="Red" />
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
            ErrorMessage="*Mínimo de 6 caracteres" ControlToValidate="txtSenha" 
            ForeColor="Red" ValidationExpression="\w{6,}"></asp:RegularExpressionValidator>
    </p>
    
    <div class="submitButton">
        <asp:Button ID="btnAcessar" Text="Acessar" runat="server" Width="80" Height="80"
            onclick="btnAcessar_Click"/>
        <asp:Button ID="btnCancelar" Text="Cancelar" runat="server" Width="80" Height="80"
            onclick="btnCancelar_Click"/>
    </div>
</asp:Content>
